//: Playground - noun: a place where people can play

import UIKit

// 定义
// (1)
enum MethodType {
    case get
    case post
    case put
    case delete
}

// (2)
enum Type : String {
    case type0 = "type0", type1 = "type1"
}

let methodType : MethodType = .get
let methodType1 = MethodType.put

let button = UIButton()
button.setTitle("123", for: .normal)

// 创建枚举具体的值
enum Direction : Int{
    case East = 1
    case North = 2
    case West = 3
    case South = 4
}

let direction : Direction = Direction.East
let direction1 : Direction? = Direction(rawValue: 1)



